<!DOCTYPE html>
<html>
<#include "../../head.html">
    <body class="full">
    <div class="mc">
        <div>
            <div class="mc-l">
                <!--左侧导航---{-->
                <div id="navPanelContainer">
                    <div class="system-logo cd"></div>
                    <!--管理员信息---{-->
                    <#include "../../adminInfo.html">
                        <!--管理员信息---}-->
                        <div class="nav-wrap">
                            <#include "../left.html">
                        </div>
                </div>
                <!--左侧导航---}-->
            </div>
            <div class="mc-m">
                <div class="navToggle"></div>
            </div>
            <div class="mc-r">
                <!--顶部导航---{-->
                <#include "../../topNav.html">
                    <!--顶部导航---}-->

                    <!--面包屑导航---{-->
                    <#assign moduleName="查看钱贝勒转入记录">
                        <#include "../banner.html">
                            <!--面包屑导航---}-->

                            <!--工具栏--{-->
                            <div id="toolbar" class="clearfix">
                            	<!-- edited by chenyuan 20150916 -->
                            	<#if param.userId !=0>
                            		<div class="toolbor-module search">
                                    	<input type="button" class="input-button return" value="返回" onclick="location.href='/admin/bm/bmUserAccount.html'">
                                	</div>
                                <#else>
                                	<div class="toolbor-module export">
                    					<input type="button" onclick="exportxls()" value="导出列表" class="input-button export-btn"/>
                					</div>
                                    <div class="toolbor-module search">
                    					<input type="button" value="搜索"  class="input-button" onclick="sousuo();">
                					</div>
                                    <div class="toolbor-module search">
                                        <div class="formTit">转入日期：</div>
                                        <input class="_search-value" name="endDate" id="endDate" value="${endDate}" id="" onclick="change_picktime()"/>
                                        <div class="formTit" > 到 </div>
                                        <input class="_search-value" name="startDate" id="startDate" value="${startDate}" onclick="change_picktime()"/>
                                    </div>
                					<div class="toolbor-module search">
                                		<div class="formTit">用户名：</div>
                                    	<input type="text" name="username" id="username" value="请输入用户名" class="search-value">
                                	</div>
                                	<div class="toolbor-module search">
                                		<div class="formTit">真实姓名：</div>
                                    	<input type="text" name="realname" id="realname" value="请输入真实姓名" class="search-value">
                                	</div>
                                	<div class="toolbor-module search">
                                		<div class="formTit">手机号码：</div>
                                    	<input type="text" name="phone" id="phone" value="请输入手机号码" class="search-value">
                                	</div>        	
                                </#if>
                            </div>
                            <!--工具栏--}-->

                            <div id="main" class="clearfix">
                                <form action="" method="post">
                                    <table class="data-list">
                                        <tr class="header">
                                            <td>ID</td>
                                            <td>转入人姓名</td>
                                            <td>转入人手机</td>
                                            <td>转入金额</td>
                                            <td>转入方式</td>
                                            <td>转入来源</td>
                                            <td>转入时间</td>
                                        </tr>
                                    <#if list??>
                                    <#list list as item>
                                        <tr class="s">
                                      		<td>${item.id?c}</td>
                                            <td>${item.user.realName!''}</td>
                                            <td>${item.user.phone!''}</td>
                                            <td>${item.inMoney!0}</td>
                                            <td>
                                            <#if item.inType ==0>
                                            	余额
                                            <#elseif item.inType ==1>
                                            	银行卡
                                            <#elseif item.inType ==2>
                                            	余额+银行卡
                                            </#if>
                                            </td>
                                            <td>
                                           	<#if item.inSource ==0>
                                            	pc
                                            <#elseif item.inSource ==1>
                                            	ios
                                            <#elseif item.inSource ==2>
                                            	android
                                            </#if>
                                            </td>
                                            <td>${item.inTime!''}</td>
                                        </tr>
                                    </#list>
                                    </#if>
                                    </table>
                                </form>

                                <!--底部工具栏--{-->
                                <div id="bottomToolbar" class="clearfix">
                                    <div class="other-tool">
                                        <dl class="refresh-data">
                                            <dt class="refresh-data-icon"></dt>
                                            <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                                        </dl>
                                    </div>

                                    <!--翻页系统--{-->
                                   <div class="container s_formPage">
                                        <#import "../../../common/page.html" as pager>
                                            <@pager.pagination page=page url="${pageUrl}" map=param style="style1"  />
                                    </div>
                                    <!--翻页系统--}-->
                                </div>
                                <!--底部工具栏--}-->
                         
                            </div>

            </div>
        </div>
        <div>
            <!--尾部--{-->
            <td colspan="3" class="mc-b"><#include "../../foot.html"></td>
            <!--尾部--}-->
        </div>
    </div>
    	<!-- added by chenyuan 20150916 -->
		<script>
        	var url = '?search=true';
        	var xurl = "?type=export"
            function sousuo(){
            	var sou = "";
                                   
              var startDate = $("#startDate").val();
              var endDate = $("#endDate").val();
              if (startDate!=null){
                  sou += "&startDate="+startDate;
              }
              if (endDate!=null){
                  sou += "&endDate="+endDate;
              }
                var username = $("#username").val();
                if (username!=""&&username!="请输入用户名"){
                	sou += "&username="+username;
                }
                                        
                var realname = $("#realname").val();
                if (realname!=""&&realname!="请输入真实姓名"){
                	sou += "&realname="+realname;
                }
                                        
                var phone = $("#phone").val();
                if (phone!=""&&phone!="请输入手机号码"){
               		sou += "&phone="+phone;
                }
                                       
                if (sou!=""){
                	location.href=url+sou;
                } else {
                	location.href=url;
                }
            }
        	function exportxls(){
            	var sou = "";
                                      
                var username = $("#username").val();
                if (username!=""&&username!="请输入用户名"){
                	sou += "&username="+username;
                }
                                        
                var realname = $("#realname").val();
                if (realname!=""&&realname!="请输入真实姓名"){
                	sou += "&realname="+realname;
                }
                                        
                var phone = $("#phone").val();
                if (phone!=""&&phone!="请输入手机号码"){
               		sou += "&phone="+phone;
                }
                var startDate = $("#startDate").val();
             	var endDate = $("#endDate").val();
              	if (startDate!=null){
                  sou += "&startDate="+startDate;
              	}
              	if (endDate!=null){
                  sou += "&endDate="+endDate;
              	}
                                       
                if (sou!=""){
                	location.href=xurl+sou;
                } else {
                	location.href=xurl;
                }
            }           
        	
        	function change_picktime(date){
    			if (date){
    			WdatePicker({dateFmt:''+date+''});
    			}else{
    				WdatePicker();
    			}
    	}	
        </script>
    </body>
</html>
<#include "../../jsPage.html">
